-- card: 27260 from stack: in.2r -- bmap block id: 0 -- flags: 0000 -- background id: 3837 -- name: PopUp -- part 2 (button) -- low flags: 00 -- high flags: A004 -- rect: left=246 top=26 right=50 bottom=336 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Try me... ----- HyperTalk script ----- on mousedown if the optionkey is down then edit script of me put PopUp ("©1988SDrazga",128,rect of target) end mousedown -- part contents for background part 5 ----- text ----- PopUp -- part contents for background part 6 ----- text ----- I created this XFCN in response to the limitations of the original PopUp menu XFCN in the Developer Stack. Many people have asked for a pop up menu that will display more than 255 characters. This one will. The larger capacity comes at a price (in terms of complexity), however. Instead of passing the menu items to the XFCN directly, you must first create a MENU resource (using ResEdit, or some other resource creator) and pass the number of the MENU resource. This XFCN fixes the problem with the menu location on large screens. It also brings up the menu with less delay. This XFCN is ©1988 by Steve Drazga and all rights are reserved. It may be used in any non-commercial, shareware, or commercial stacks as long as the following conditions are met: 1) Within the credits of the stack the phrase "Portions ©1988 Steve Drazga" should be included. 2) Send a copy of your finished stack to me at: Steve Drazga AnalytX Box 388 Southampton, PA 18966 The only compensation I receive will be seeing my efforts utilitized by others. If you need custom XCMDs/XFCNs, stacks, or HyperCard training for your organization contact Steve Drazga at AnalytX (215) 464-3733. -- part contents for background part 7 ----- text ----- Syntax: PopUp ("©1988SDrazga",,[,]) Returns the number of the item selected (or the name if a fourth parameter is passed). ••Important: This must be called within a MouseDown handler!•• The first parameter passed must be the copyright notice (the © symbol is option-g). The second parameter is the ID number of the MENU resource. The third parameter is the rectangle of the button you are calling the XFCN from. The menu will automatically be placed so that it lines up with bottom and left sides of the button. If a fourth parameter is passed, the XFCN will return the name of the item selected. Otherwise it will return the number of the item selected. -- part contents for background part 10 ----- text ----- 18